Optimal. Leaf size=9 \[ \sinh ^{-1}\left (\frac {\sin (x)}{\sqrt {3}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 9, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {3265, 221}
\begin {gather*} \sinh ^{-1}\left (\frac {\sin (x)}{\sqrt {3}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 221
Rule 3265
Rubi steps
\begin {align*} \int \frac {\cos (x)}{\sqrt {4-\cos ^2(x)}} \, dx &=\text {Subst}\left (\int \frac {1}{\sqrt {3+x^2}} \, dx,x,\sin (x)\right )\\ &=\sinh ^{-1}\left (\frac {\sin (x)}{\sqrt {3}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 9, normalized size = 1.00 \begin {gather*} \sinh ^{-1}\left (\frac {\sin (x)}{\sqrt {3}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(52\) vs.
\(2(8)=16\).
time = 0.38, size = 53, normalized size = 5.89
method | result | size |
default | \(-\frac {\sqrt {-\left (\cos ^{2}\left (x \right )-4\right ) \left (\sin ^{2}\left (x \right )\right )}\, \ln \left (-\left (\sin ^{2}\left (x \right )\right )+\sqrt {\sin ^{4}\left (x \right )+3 \left (\sin ^{2}\left (x \right )\right )}-\frac {3}{2}\right )}{2 \sin \left (x \right ) \sqrt {4-\left (\cos ^{2}\left (x \right )\right )}}\) | \(53\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.47, size = 8, normalized size = 0.89 \begin {gather*} \operatorname {arsinh}\left (\frac {1}{3} \, \sqrt {3} \sin \left (x\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 39 vs.
\(2 (8) = 16\).
time = 0.39, size = 39, normalized size = 4.33 \begin {gather*} \frac {1}{4} \, \log \left (8 \, \cos \left (x\right )^{4} - 4 \, {\left (2 \, \cos \left (x\right )^{2} - 5\right )} \sqrt {-\cos \left (x\right )^{2} + 4} \sin \left (x\right ) - 40 \, \cos \left (x\right )^{2} + 41\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\cos {\left (x \right )}}{\sqrt {- \left (\cos {\left (x \right )} - 2\right ) \left (\cos {\left (x \right )} + 2\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 29 vs.
\(2 (8) = 16\).
time = 0.44, size = 29, normalized size = 3.22 \begin {gather*} \frac {1}{2} \, \sqrt {\sin \left (x\right )^{2} + 3} \sin \left (x\right ) - \frac {3}{2} \, \log \left (\sqrt {\sin \left (x\right )^{2} + 3} - \sin \left (x\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.11 \begin {gather*} \int \frac {\cos \left (x\right )}{\sqrt {4-{\cos \left (x\right )}^2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________